<?php

namespace app\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * MarginMargin
 *
 * @ORM\Table(name="margin_margin", uniqueConstraints={@ORM\UniqueConstraint(name="user_id", columns={"user_id"})})
 * @ORM\Entity
 */
class MarginMargin
{
    /**
     * @var int
     *
     * @ORM\Column(name="id", type="integer", nullable=false, options={"unsigned"=true})
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var int
     *
     * @ORM\Column(name="user_id", type="integer", nullable=false, options={"unsigned"=true,"comment"="用户ID"})
     */
    private $userId;

    /**
     * @var string
     *
     * @ORM\Column(name="avaliable_amount", type="decimal", precision=20, scale=2, nullable=false, options={"default"="0.00","comment"="可用余额"})
     */
    private $avaliableAmount = '0.00';

    /**
     * @var string
     *
     * @ORM\Column(name="withdrawing_amount", type="decimal", precision=20, scale=2, nullable=false, options={"default"="0.00","comment"="提现冻结"})
     */
    private $withdrawingAmount = '0.00';

    /**
     * @var \DateTime|null
     *
     * @ORM\Column(name="create_time", type="datetime", nullable=true, options={"comment"="创建时间"})
     */
    private $createTime;

    /**
     * @var \DateTime|null
     *
     * @ORM\Column(name="update_time", type="datetime", nullable=true, options={"comment"="更新时间"})
     */
    private $updateTime;


}
